import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';

// 模块
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AdminRoutingModule } from './admin-routing.module';
import { SelectModule } from 'ng2-select';
import { AngularEchartsModule } from 'ngx-echarts';

// 组件
import { AdminComponent } from './admin.component';
import { LoadingAnimateModule } from '../common/loading';
import { AdminDashboardComponent } from './admin-dashboard.component';
import { BackComponent } from '../common/back.component';
import { EventlistenComponent ,EventlistenAddComponent,EventlistenEditComponent} from './client/eventlisten';
import { EventComponent ,EventHookComponent} from './client/event';

import { ModalModule } from 'ngx-bootstrap/modal';
import { MyAlertModule } from '../common/alert';
// 管道
import { DateFormatPipe } from '../pipe/dateFormat.pipe';

// 服务
import { AdminService } from './admin.service';
import { AlertService } from '../common/alert';
import {LocalStorageService} from '../store/index'
@NgModule({
    imports: [
        HttpModule,
        BrowserModule,
        FormsModule,
        LoadingAnimateModule.forRoot(),
        NgbModule.forRoot(),
        ModalModule.forRoot(),
        MyAlertModule.forRoot(),
        AdminRoutingModule,
        SelectModule,
        AngularEchartsModule
    ],
    declarations: [
        AdminComponent,
        AdminDashboardComponent,
        DateFormatPipe,
        BackComponent,
        EventlistenComponent,
        EventlistenAddComponent,
        EventlistenEditComponent,
        EventComponent,
        EventHookComponent
    ],
    entryComponents: [],
    providers: [
        AdminService,
        LocalStorageService,
        AlertService,
        { provide: 'Window', useValue: window }
    ]
})
export class AdminModule { }
